<template>
  <el-menu
    default-active="2"
    class="el-menu-vertical-demo"
    background-color="#545c64"
    text-color="#fff"
    active-text-color="#ffd04b"
    :collapse-transition="false"
    router
    unique-opened
    :collapse="collapse"
  >
    <navbar-item :menus="menus"></navbar-item>
  </el-menu>
</template>

<script>
import NavbarItem from "./NavbarItem.vue";
export default {
  components: {
    NavbarItem,
  },
  props: {
    menus: {
      type: Array,
      require: true,
    },
    collapse: {
      type: Boolean,
      // default: false,
    },
  },
};
</script>

<style scoped>
.el-menu {
  height: 100vh;
  border-right: none;
}
</style>